package com.wn.controller;

import com.wn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    // http://localhost:8080/user/account
    @GetMapping("/account")
    public int updateAccount(){
        return userService.updateAccount();
    }

}
